/**
 * 文件名称:  ShadeSupport.java
 * 文件版权:  SunShade Technologies Co., Ltd. Copyright 2000-2020,  All rights reserved
 * 文件描述:  <描述>
 * 修改作者:  LiXiangDong
 * 修改时间:  Jan 11, 2013
 * 修改单号:  <修改单号>
 * 修改内容:  <修改内容>
 */
package com.sunshade.common.ibatis;

import java.util.List;

/**
 * 
 * @author  LiXiangDong
 * @version V1.0, Jan 11, 2013
 */
public class ShadeSQLSupport
{
    
    private IBatisSupport batisSupport = null;
    
    public IBatisSupport getBatisSupport()
    {
        return batisSupport;
    }
    
    public void setBatisSupport(IBatisSupport batisSupport)
    {
        this.batisSupport = batisSupport;
    }
    
    public List<?> queryForList(String statementName)
    {
        return batisSupport.getSqlMapClientTemplate()
                .queryForList(statementName);
    }
    
    public List<?> queryForList(String statementName, Object parameterObject)
    {
        return batisSupport.getSqlMapClientTemplate()
                .queryForList(statementName, parameterObject);
    }
    
    public Object queryForObject(String statementName)
    {
        return batisSupport.getSqlMapClientTemplate()
                .queryForObject(statementName);
    }
    
    public Object queryForObject(String statementName, Object parameterObject)
    {
        return batisSupport.getSqlMapClientTemplate()
                .queryForObject(statementName, parameterObject);
    }
    
    public Object insert(String statementName)
    {
        return batisSupport.getSqlMapClientTemplate().insert(statementName);
    }
    
    public Object insert(String statementName, Object parameterObject)
    {
        return batisSupport.getSqlMapClientTemplate().insert(statementName,
                parameterObject);
    }
    
    public int update(String statementName)
    {
        return batisSupport.getSqlMapClientTemplate().update(statementName);
    }
    
    public int update(String statementName, Object parameterObject)
    {
        return batisSupport.getSqlMapClientTemplate().update(statementName,
                parameterObject);
    }
    
    public int delete(String statementName)
    {
        return batisSupport.getSqlMapClientTemplate().delete(statementName);
    }
    
    public int delete(String statementName, Object parameterObject)
    {
        return batisSupport.getSqlMapClientTemplate().delete(statementName,
                parameterObject);
    }
}